/*
 * @Description: 
 * @Author: xuechengwu
 * @Email: 516385822@qq.com
 * @Date: 2021-11-20 14:39:51
 * @LastEditTime: 2022-02-07 10:43:00
 * @LastEditors: xuechengwu
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import Vdr from './components/Vdr.vue';
import axios from 'axios';
Vue.use(ElementUI);
Vue.component('vdr', Vdr);
Vue.config.productionTip = false
import A5 from './A5';
window.A5 = A5;
import { loadJS } from './utils/common';
import './business';

axios.get('/api/component-list')
.then((res) => {
  const { data = [] } = res.data;
  const promises = data.map(vo => {
    return loadJS(`/api/${vo}`);
  });
  Promise.all(promises).then(() => {
    new Vue({
      router,
      store,
      render: h => h(App)
    }).$mount('#app')
  })
});


